// main.cpp
#include "Student.h"
#include "Teacher.h"
#include <typeinfo>

using namespace std;

int main()
{
    int i = 100;
    const type_info &ti1 = typeid(i);
    cout << ti1.name() << endl;
    float f;
    cout << typeid(f).name() << endl;
    double d;
    cout << typeid(d).name() << endl;

    Person *p = new Student;
    cout << typeid(p).name() << endl;
    cout << typeid(*p).name() << endl;
    delete p;
    p = nullptr;
    return 0;
}